﻿#define _CRT_SECURE_NO_WARNINGS 1
#pragma warning(disable : 6031)
#include "queue.h"

void test1()
{
	Queue q;
	queueinit(&q);
	queuepush(&q, 1);
	queuepush(&q, 2);
	queuepush(&q, 3);
	queuepush(&q, 4);
	while (!queueempty(&q))
	{
		printf("%d ", queuefront(&q));
		queuepop(&q);
	}
	queuedestroy(&q);
}

int main()
{
	test1();
	return 0;
}